<?php
	$goodsId=$_REQUEST["goodsId"];
	$num=$_REQUEST["num"];
	
	
	$link=mysqli_connect("localhost:3306","root","root","lidu");
	if(!($link)){
		echo "数据库连接失败";
	}else{
		$sql02="UPDATE goods SET num={$num} WHERE goodsId='{$goodsId}'";
		$res=mysqli_query($link,$sql02);
	}
?>